<template>
  <el-container direction="horizontal">
    <el-aside width="200px">
      <Leftaside />
    </el-aside>
    <el-main>
      <HeaderComponent></HeaderComponent>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script>
// 引入组件
import Leftaside from "@/components/leftaside";
import HeaderComponent from "@/components/header-component";

export default {
  name: "home",
  components: {
    Leftaside,
    HeaderComponent,
  },
};
</script>

<style lang="less">
html {
  height: 100%;
}
body {
  width: 100%;
  height: 100%;
  background-color: #eee !important;
  margin: 0;
  padding: 0;
  overflow-y: hidden;
}

a {
  text-decoration: none;
  color: #000;
}
a:focus,
a:active {
  color: #000;
}
body .el-container {
  margin-bottom: 40px;
  height: 100%;
  .el-aside {
    // width: 200px;
    background: #324157;
    color: #333;
    text-align: center;
    // float: left;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
  }
  .el-main {
    background-color: #e9eef3;
    color: #333;
    // text-align: center;
    // width: 800px;
    margin-left: 200px;
    height: 100%;
    float: left;
    width: 100%;
    padding: 0;
  }
}
</style>
